<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  <script>
    /**
     * 2022年4月28日10:28:56
     * js 11
     * 如何获取一个实例对象的原型对象
     */
    function Stu() {
      this.name = '小马扎'
      this.age = 18
    }

    const stu = new Stu()
    // 构造函数获取
    console.log(Stu.prototype)
    // 实例对象获取
    console.log(stu.__proto__)
    console.log(Object.getPrototypeOf(stu))
  </script>
</body>

</html>
